package com.zhuqieli.database_learn.filter;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author dupr
 * @description 过滤器实现
 * @date 2023/8/30 19:55:23
 */
@Component
public class MyFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("prepare study");
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
